package com.freedom.pms.feign;

import com.freedom.common.core.result.CommonResult;
import com.freedom.pms.pojo.dto.GoodsSkuDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "freedom-pms", contextId = "goodsSku")
public interface GoodsSkuFeign {

    @GetMapping("/facade-api/v1/goods/sku")
    CommonResult<GoodsSkuDTO> queryGoodsSku(@PathVariable Integer skuId);
}
